package cn.gson.springboot.model.pjos;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * 回复表
 */
@Entity
@Table(name = "reply", schema = "springboot", catalog = "")
public class Reply {
    private int replId;             //回复表id
    private Integer replIds;        //存放一级回复id
    private Integer replPeople;     //回复的人(上一级)
    private String replContent;     //回复内容
    private Timestamp replDate;     //回复时间
    private Integer replDelete;     //逻辑删除
    private Emp empByEmployeesId;   //发表人(一级或二级)
    private Culog culogByCulId;

    public Reply() {
    }

    @Id
    @Column(name = "repl_id")
    public int getReplId() {
        return replId;
    }

    public void setReplId(int replId) {
        this.replId = replId;
    }

    @Basic
    @Column(name = "repl_ids")
    public Integer getReplIds() {
        return replIds;
    }

    public void setReplIds(Integer replIds) {
        this.replIds = replIds;
    }

    @Basic
    @Column(name = "repl_people")
    public Integer getReplPeople() {
        return replPeople;
    }

    public void setReplPeople(Integer replPeople) {
        this.replPeople = replPeople;
    }

    @Basic
    @Column(name = "repl_content")
    public String getReplContent() {
        return replContent;
    }

    public void setReplContent(String replContent) {
        this.replContent = replContent;
    }

    @Basic
    @Column(name = "repl_date")
    public Timestamp getReplDate() {
        return replDate;
    }

    public void setReplDate(Timestamp replDate) {
        this.replDate = replDate;
    }

    @Basic
    @Column(name = "repl_delete")
    public Integer getReplDelete() {
        return replDelete;
    }

    public void setReplDelete(Integer replDelete) {
        this.replDelete = replDelete;
    }

    @ManyToOne
    @JoinColumn(name = "employees_id", referencedColumnName = "employees_id")
    public Emp getEmpByEmployeesId() {
        return empByEmployeesId;
    }

    public void setEmpByEmployeesId(Emp empByEmployeesId) {
        this.empByEmployeesId = empByEmployeesId;
    }

    @ManyToOne
    @JoinColumn(name = "cul_id", referencedColumnName = "cul_id")
    public Culog getCulogByCulId() {
        return culogByCulId;
    }

    public void setCulogByCulId(Culog culogByCulId) {
        this.culogByCulId = culogByCulId;
    }
}
